package com.dnzx.model.system;

import org.apache.ibatis.type.Alias;
import org.dnzx.framework.orm.LongBaseEntity;
import org.hibernate.validator.constraints.NotBlank;

import com.fasterxml.jackson.annotation.JsonIgnore;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>系统后台角色实体</p>
 *
 * @author Steven
 * @version V1.0
 * @Package com.dnzx.model
 * 
 * @date 2017/9/19 22:01
 */
@Alias("roleBO")
@ApiModel(value="RoleBO 角色信息实体类")
public class RoleBO extends LongBaseEntity {
	
	private static final long serialVersionUID = 1L;
	
	@ApiModelProperty(value="角色名称")
	@NotBlank(message="角色名称不能为空")
    private String name;
	@ApiModelProperty(value="角色描述")
    private String content;
	@ApiModelProperty(value="是否可操作")
    private String isAdmin;
	
	@ApiModelProperty(value="角色名称用于查询")
	@JsonIgnore
    private String nameQuery;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getNameQuery() {
		return nameQuery;
	}

	public void setNameQuery(String nameQuery) {
		this.nameQuery = nameQuery;
	}

	public String getIsAdmin() {
		return isAdmin;
	}

	public void setIsAdmin(String isAdmin) {
		this.isAdmin = isAdmin;
	}

}
